<div class="container">
    <div class="row">
        <div class="span7 offset2 well">
            <div class="hero-unit color2">
                <div class="btn-group">
                    <a class="btn" href="<?php echo $this->url(array('do' => null)); ?>">Daten ansehen</a>
                    <a class="btn" href="<?php echo $this->url(array('do' => 'password')); ?>">Password ändern</a>
                </div>
                <p>
                <?php if(is_array($this->messages)) : ?>
                    <div class="alert alert-error">
                        <ul>
                            <?php foreach($this->messages as $fieldname => $errorTyp) : ?>
                                <?php foreach($errorTyp as $typ => $messages) : ?>
                                    <li><?php echo $messages; ?></li>
                                <?php endforeach; ?>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                <?php endif; ?>
                </p>
                <form method="post">
                    <table class="table table-condensed">
                        <tbody>
                            <tr>
                                <td class="tableLabel">Role</td>
                                <td><b><?php echo $this->role; ?></b></td>
                            </tr>
                            <tr>
                                <td>Benutzername</td>
                                <td>
                                    <div class="control-group <?php echo $this->usernameError; ?>">
                                        <input type="text" class="input-xlarge" name="form[username]" id="username" value="<?php echo $this->username; ?>">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>Vorname</td>
                                <td>
                                    <div class="control-group <?php echo $this->firstnameError; ?>">
                                        <input type="text" class="input-xlarge" name="form[firstname]" id="firstname" value="<?php echo $this->firstname; ?>">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>Nachname</td>
                                <td>
                                    <div class="control-group <?php echo $this->lastnameError; ?>">
                                        <input type="text" class="input-xlarge" name="form[lastname]" id="lastname" value="<?php echo $this->lastname; ?>">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="control-group">
                        <input type="hidden" name="form[role]" value="<?php echo $this->role; ?>">
                        <button type="submit" class="btn btn-primary">Änderung speichern</button>
                        <a class="btn" href="<?php echo $this->url(array('do' => null)); ?>">abbrechen</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>